package com.wntms.wy.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.util.Date;

       /* CREATE TABLE `carriage_contract` (
        `cid` varchar(50) NOT NULL COMMENT '运输合同单号',
        `fid` varchar(50) NOT NULL COMMENT '货运编号',
        `senderid` int(11) DEFAULT NULL COMMENT '发货人senderid',
        `receive_address` varchar(20) DEFAULT NULL COMMENT '交货点receive_address',
        `shipping_time` datetime DEFAULT NULL COMMENT '起运时间shipping_time',
        `arrival_time` datetime DEFAULT NULL COMMENT '预计到达时间arrival_time',
        `receiverid` int(11) NOT NULL COMMENT '收货客户信息idreceiverid',
        `insurance` double DEFAULT NULL COMMENT '保险费insurance',
        `fare` double DEFAULT NULL COMMENT '运费fare',
        `status` tinyint(1) DEFAULT NULL COMMENT '运单状态status',
        `sence` tinyint(1) DEFAULT NULL COMMENT '有效性sence',
        `diid` int(11) NOT NULL COMMENT '司机信息表id',
        PRIMARY KEY (`cid`,`fid`,`receiverid`,`diid`)
        ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='运输合同表'*/

@Data
@NoArgsConstructor
@AllArgsConstructor
public class CarrigeContract {
    //运输合同单号
    private String cid;
    //货运编号
    private String fid;
    //发货人编号
    private String senderid;
    //交货地点
    private String receive_address;
    //起运时间yyyy-MM-dd HH:mm:ss E
    //@JsonFormat(pattern = "yyyy-MM-dd'T'HH:mm:ss.SSS'Z'")
    @JsonFormat(pattern = "yyyy-MM-dd")
    //@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date shippingtime;
    //预计到达时间
    //@JsonFormat(pattern = "yyyy-MM-dd'T'HH:mm:ss.SSS'Z'")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date arrival_time;
    //收货人id
    private String receiverid;
    //保险费
    private Double insurance;
    //运费
    private Double fare;
    //运单状态
    private Boolean status;
    //有效性
    private Boolean sence;
    //司机信息id
    private Integer diid;


}
